#define _CRT_SECURE_NO_WARNINGS
int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize)
{
    *returnSize = 0;
    int i = 0;
    int* arr = (int*)calloc(numsSize, sizeof(int));
    for (i = 0; i < numsSize; i++)
    {
        arr[i] = i + 1;
    }
    for (i = 0; i < numsSize; i++)
    {
        arr[nums[i] - 1] = 0;
    }
    for (i = 0; i < numsSize; i++)
    {
        if (arr[i])
        {
            (*returnSize)++;
        }
    }
    int* ret = (int*)malloc(sizeof(int) * (*returnSize));
    int j = 0;
    for (i = 0; i < numsSize && j < *returnSize; i++)
    {
        if (arr[i])
        {
            ret[j] = arr[i];
            j++;
        }
    }
    return ret;
}